<%@ Page Language="C#" MasterPageFile="~/TreyResearchOnlineEMR.Master" AutoEventWireup="true"
    CodeFile="~/ViewPatient.aspx.cs" Inherits="ViewPatient" Title="Trey Research - View Patients" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <div class="ContentPlaceHolderInner" style="text-align: center; vertical-align: top;">
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="height: 20px;">
                </td>
                <td>
                    <asp:Label ID="LabelNoRecords" runat="server"></asp:Label></td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td align="Center" valign="top">
                    <asp:GridView ID="GridViewPatientList" CssClass="Grid" Width="800px" runat="server"
                        AutoGenerateColumns="False" AllowPaging="True" GridLines="Horizontal" OnPageIndexChanging="GrdPatientList_PageIndexChanging"
                        PageSize="12" AllowSorting="True" OnSorting="GrdPatientList_Sorting" OnRowDataBound="GridViewPatientList_RowDataBound">
                        <HeaderStyle CssClass="GridHeader" HorizontalAlign="Center" Font-Bold="False" ForeColor="White" />
                        <RowStyle CssClass="GridRow" />
                        <PagerStyle CssClass="GridPager" HorizontalAlign="Right" Font-Bold="False" Font-Underline="False"
                            ForeColor="White" VerticalAlign="Middle" />
                        <Columns>
                            <asp:TemplateField HeaderText="&#160;&#160;Patient Name" SortExpression="PatientName">
                                <ItemStyle Width="300px" HorizontalAlign="Left" />
                                <ItemTemplate>
                                    &nbsp;&nbsp;<asp:HyperLink ID="HyperLinkName" runat="server" NavigateUrl='<%# Bind("PatientID")%>'
                                        Text='<%# Bind("PatientName") %>'></asp:HyperLink>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Direct to clinical setup?" SortExpression="Enroll">
                                <ItemStyle Width="200px" HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("Enroll") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Medications" SortExpression="Medications">
                                <ItemStyle Width="75px" HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Medications") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="CCR" SortExpression="CCR">
                                <ItemStyle Width="75px" HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("CCR") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="CCD" SortExpression="CCD">
                                <ItemStyle Width="75px" HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("CCD") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Lab Tests" SortExpression="LabTests">
                                <ItemStyle Width="75px" HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("LabTests") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:HiddenField ID="HiddenFieldSortOrder" runat="server" />
                    <asp:HiddenField ID="HiddenFieldExpression" runat="server" />
                </td>
                <td>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
